package cn.wit.test;

import java.io.UnsupportedEncodingException;
/**
 * 不同的编码，字节不同
 * @author 16604
 *
 */

public class DemoEncoding {
	
	public static void main(String[] args) throws UnsupportedEncodingException {
		
		String s = "中";
		
		byte[] bytes = s.getBytes();
		
		for(byte b:bytes) {
			System.out.println(b);
		}
		
		byte[] bytes2 = s.getBytes("iso-8859-1");

		for(byte b:bytes2) {
			System.out.println(b);
		}
		
	}

}
